cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

find_package(LibPiutils REQUIRED)
include_directories(${LibPiutils_INCLUDE_DIRS})
set(LIBS ${LibPiutils_LIBRARIES})

find_package(HDF5 REQUIRED COMPONENTS C)
include_directories(${HDF5_INCLUDE_DIRS})
list(APPEND LIBS ${HDF5_LIBRARIES})

add_library (hdf5utils
  hdf5util.cpp
)

target_link_libraries(hdf5utils ${LIBS})

install (TARGETS hdf5utils DESTINATION lib)
